package com.gxa.community.customer.service.pay;

import com.alipay.api.AlipayApiException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.gxa.community.core.pojo.domain.OrderInfo;
import com.gxa.community.core.utils.R;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;

public interface PayService {
    String orderPay(OrderInfo orderInfo);
    String payReturn(HttpServletRequest request) throws AlipayApiException, UnsupportedEncodingException, JsonProcessingException;
    R refund(String orderNo, Double payment) throws AlipayApiException;
}
